//
//  NavigationLeftBar.swift
//  Casecord
//
//  Created by baozi on 2024/1/3.
//

import Foundation
import SwiftUI

struct NavigationBackButton: ToolbarContent {
    @Environment(\.presentationMode) private var presentationMode
    
    var body: some ToolbarContent {
        ToolbarItem(placement: .navigationBarLeading) {
            Button { presentationMode.wrappedValue.dismiss() } label: {
                Theme.icon.backButton
                    .foregroundStyle(Theme.color.title)
            }
        }
    }
    
}
